from tkinter import *

win = Tk()
win.title("C语言中文网")
win.geometry('300x200+300+300')
win.iconbitmap('qianduan\logo.ico')

text = Text(win,width=50,height=30,undo=True,autoseparators=False)
text.pack()

text.insert(INSERT,'C语言中文网,一个有温度的网站')
win.mainloop()